/**
 * 
 */
package ru.alexo.whiskey.util;

/**
 * Defines possible ways to alter the note (sharp, flat)
 * 
 * @author Exaybachay
 */
public enum Alteration {

    /**
     * The note is sharp.
     * <p>
     * Note that E# has the same pitch as F, and B# has the same pitch as C but
     * they are not equal in harmonic meaning.</b>
     */
    SHARP(1),

    /**
     * The note is flat.
     */
    FLAT(-1);

    private int value;

    private Alteration(int value) {
	this.value = value;
    }

    /**
     * Gets the integer value (1 for sharp, -1 for flat.)
     * 
     * @return
     */
    public int getValue() {
	return value;
    }

}